package com.todoapp.page;

import org.apache.wicket.IPageMap;
import org.apache.wicket.PageParameters;
import org.apache.wicket.devutils.debugbar.DebugBar;
import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.model.IModel;
import org.apache.wicket.model.PropertyModel;


public abstract class Template extends BasePage {

	public Template() {
		add(new Label("pageTitle",new PropertyModel<Template>(this,"pageTitle")));
		add(new Label("pageTitleSpan",new PropertyModel<Template>(this,"pageTitle")));
		add(new DebugBar("debug"));
	}

	public Template(IModel<?> model) {
		super(model);
	}

	public Template(IPageMap pageMap) {
		super(pageMap);
	}

	public Template(PageParameters parameters) {
		super(parameters);
	}

	public Template(IPageMap pageMap, IModel<?> model) {
		super(pageMap, model);
	}

	public Template(IPageMap pageMap, PageParameters parameters) {
		super(pageMap, parameters);
	}
	
	public abstract String getPageTitle();

}
